﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csos.Kernel {

    public delegate void CustomBootHandler();

    public class Boot {
        private static Boot _instance;

        public static Boot Instance { get {
            if (_instance == null) {
                _instance = new Boot();
            }
            return _instance;
        } }

        private Boot() {
            OnBoot += Boot_OnBoot;
        }

        void Boot_OnBoot() {
            throw new NotImplementedException();
        }

        public event CustomBootHandler OnBoot;

        public bool InvokBoot() {
            if (OnBoot != null) {
                OnBoot();
            }

            return true;
        }
    }
}
